package cn.arnold.test;

/**
 * @Author Arnold
 * @Desc TODO
 **/
public class VarJVM {
    public static void main(String[] args) {
        StringBuffer a = new StringBuffer("A");
        StringBuffer b = new StringBuffer("B");
        opreator(a, b);
        System.out.println(a + "," + b);
        String aa = "A";
        String bb = "B";
        opreator2(aa, bb);
        System.out.println(aa + "," + bb);
    }

    public static void opreator(StringBuffer x, StringBuffer y) {
        x.append(y);
        y = x;
    }

    public static void opreator2(String x, String y) {
        x += y;
        y = x;
    }
}
